	<style>
form label.error {
	color: red;
	float: none;
	padding-left: 0.5em;
	vertical-align: middle;
	width:300px;
	}</style>
	<script>
$(document).ready(function(){
	$("#userViewConfigForm").validate({});
	});
</script>
	<?php
	// c'est a l'arrache, c'est moche, mais efficace, pardon aux programmeurs qui me lisent
	$group=array('1'=>'admin','2'=>'registered');
	?>
	<table class="box-table-a">
	<thead>
	<tr>
	<th scope='col'>id</th>
	<th scope='col'><?php echo __('Login');?></th>
	<th scope='col'><?php echo __('Fullname');?></th>
	<th scope='col'><?php echo __('Email');?></th>
	<th scope='col'><?php echo __('Creation date');?></th>
	<th scope='col'><?php echo __('Website group');?></th>
	<th scope='col' colspan="2"><?php echo __('Action');?></th>
	</tr>
	</thead>
	<tbody id="tableitems">
	<?php
	if (!empty($users))
	{
	foreach($users as $user)
	{
	echo "<tr>";
	echo "<td>".$user['User']['id']."</td>";
	echo "<td>".$user['User']['username']."</td>";
	echo "<td>".$user['User']['fullname']."</td>";
	echo "<td>".$user['User']['email']."</td>";
	echo "<td>".$user['User']['created']."</td>";
	echo "<td>".$group[$user['User']['group']]."</td>";
	echo "<td><a class='ui-icon ui-icon-pencil' title='Edit' href='#' onclick='edituser(".json_encode(array('id'=>$user['User']['id'],'username'=>$user['User']['username'],'fullname'=>$user['User']['fullname'],'email'=>$user['User']['email'],'group'=>$user['User']['group'])).");'></a></td>";
	echo "<td>".$this->Js->link('del', array('controller'=>'private','action'=>'deluser',$user['User']['id']),array('confirm'=>__('Are you sure ?',TRUE),'title'=>'Delete','class'=>'ui-icon ui-icon-trash','update'=>'#fragment-6'))."</td>";
	echo "</tr>";
	}
	}
	echo $this->Js->writeBuffer();
	?>
	</tbody>
	<!-- <tfoot>
	<tr><td colspan="4" align="center"><a class="ui-icon ui-icon-plus" href="#" onclick="addtemplateplugin();"></a></td></tr>
	</tfoot> -->
	</table>
	<?php
	echo $this->Session->flash();
	?>